{% extends "sentry/emails/base.html" %}

{% load i18n %}
{% load sentry_avatars %}
{% load sentry_helpers %}

{% block main %}
  <h3>Security Notice</h3>
  <p>User {{ actor.email }} has created a new Organization Auth Token "{{ token_name|sanitize_periods }}" for your Sentry organization {{ organization.name|sanitize_periods }}.</p>
  <table>
    <tr>
      <td style="width:36px;vertical-align:top;padding-right:15px;">
        {% avatar_for_email actor 36 %}
      </td>
      <td>
        <strong>{{ actor.email }}</strong><br />
        {{ ip_address }}<br />
        {{ datetime }} UTC
      </td>
    </tr>
    {% block security_metadata %}{% endblock %}
  </table>
  <h4>Don't recognize this activity?</h4>
  <p>We recommend to check with {{ actor.email }} if you are unsure about the purpose of this token. If you determine that this activity is malicious please contact <a href="mailto:{% security_contact %}">{% security_contact %}</a>.</p>
  <p><a href="{% absolute_uri %}/settings/{{ organization.slug }}/auth-tokens/" class="btn">View or Revoke Token</a></p>
{% endblock %}

{% block footer %}{% endblock %}
